import { IFeidaoAiWeappPage } from '@dfeidao/atom-wxapp/interfaces';
import nodejs from '@dfeidao/atom-wxapp/msg/nodejs';
import render from '@dfeidao/atom-wxapp/render/render';
import set_local from '@dfeidao/atom-wxapp/local/set';

export default async function a002(fd: IFeidaoAiWeappPage) {
	const data = await nodejs('app-lack_merchandis_shelves-find', {
		sort: { equip_no: 1 },
		page_no: 1,
		page_size: 1,
		filter: {
			product_up_status: "已上架"
		}
	});

	render(fd, {
		data,
		Lack: "bg-c",
		Normal: ""
	})
	set_local(fd, 'data', data);
	set_local(fd, 'flag', '1');
}
